/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
 *
 */

import { AppOhosConfig, Overrides } from '../../options/build/app-ohos-config.js';

export class ProjectOhosConfigManager {
  private ohosConfig: AppOhosConfig | undefined;

  loaderConfig(profile: AppOhosConfig) {
    this.ohosConfig = profile;
  }

  getOverrides(): Overrides | undefined {
    return this.ohosConfig?.overrides;
  }

  getConfig(): AppOhosConfig | undefined {
    return this.ohosConfig;
  }
}

export const projectOhosConfigManager = new ProjectOhosConfigManager();
